package com.fenghuo.map;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class Ac_Choice extends Activity implements OnClickListener {

	private TextView tv_back;
	private RelativeLayout rl_searchbykind;
	private RelativeLayout rl_myhistory;
	private RelativeLayout rl_schoolinstruction;
	private RelativeLayout rl_setting;
	private RelativeLayout rl_howuse;
	private RelativeLayout rl_aboutus;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ac_choices);

		findveiws();
		tv_back.setOnClickListener(this);
		rl_aboutus.setOnClickListener(this);
		rl_howuse.setOnClickListener(this);
		rl_myhistory.setOnClickListener(this);
		rl_schoolinstruction.setOnClickListener(this);
		rl_searchbykind.setOnClickListener(this);
		rl_setting.setOnClickListener(this);
	}

	private void findveiws() {
		tv_back=(TextView) findViewById(R.id.tv_back_choices);
		rl_aboutus=(RelativeLayout) findViewById(R.id.rela_aboutus);
		rl_howuse=(RelativeLayout) findViewById(R.id.rela_howuse);
		rl_myhistory=(RelativeLayout) findViewById(R.id.rela_histroy);
		rl_schoolinstruction=(RelativeLayout) findViewById(R.id.rela_introdecesc);
		rl_searchbykind=(RelativeLayout) findViewById(R.id.rela_searchbykind);
		rl_setting=(RelativeLayout) findViewById(R.id.rela_settings);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.tv_back_choices:
			finish();
			break;
		case R.id.rela_searchbykind:
			Intent intent=new Intent(Ac_Choice.this, Ac_SearchByKind.class);
			startActivity(intent);
			finish();
			break;
		case R.id.rela_histroy:
			Intent intent2=new Intent(Ac_Choice.this, Ac_History.class);
			startActivity(intent2);
			break;
		case R.id.rela_introdecesc:
			Intent intent3=new Intent(Ac_Choice.this, Ac_Instruction.class);
			startActivity(intent3);
			break;
		case R.id.rela_settings:
			Intent intent4=new Intent(Ac_Choice.this, Ac_Settings.class);
			startActivity(intent4);
			break;
		case R.id.rela_howuse:
			Intent intent5=new Intent(Ac_Choice.this, Ac_HowUse.class);
			startActivity(intent5);
			break;
		case R.id.rela_aboutus:
			Intent intent6=new Intent(Ac_Choice.this, Ac_AboutUs.class);
			startActivity(intent6);
			break;

		default:
			break;
		}
	}
}
